{extend name="base/main" /}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>音频专题 / 素材列表</h5>
        </div>
        <div class="ibox-content">
            <div class="row row-lg">
                <div class="col-sm-12">
                    <div class="search-area" id="toggle" style="margin-bottom: 15px;">
                        <form class="form-horizontal m-t" action="{:url('Marketing/poster_list')}" method="get">
                            <div class="layui-form">
                                <div class="layui-inline">
                                    <label class="layui-form-label">搜索</label>
                                    <div class="layui-input-inline">
                                        <input type="tel" name="phone" lay-verify="required|phone" autocomplete="off" class="layui-input" placeholder="请输入要查询的数据">
                                    </div>
                                    <button type="button" class="layui-btn layui-btn-normal">原始按钮</button>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="layui-form">
                        <div class="layui-inline">
                            <a href="{:url('Marketing/poster_add')}" class="layui-btn layui-btn-normal">添加活动</a>
                        </div>
                        <table class="layui-table">
                            <colgroup>
                                <col width="150">
                                <col width="150">
                                <col width="200">
                                <col>
                            </colgroup>
                            <thead>
                            <tr>
                                <th>编号</th>
                                <th>签到时间</th>
                                <th>海报</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            {volist name="data" id="vo"}
                            <tr>
                                <td>{$vo.id}</td>
                                <td>{$vo.time}</td>
                                <td><img src="{$vo.img}" alt="" width="150px" height="80px"></td>
                                <td>
                                    <a href="{:url('Marketing/poster_edit',['id'=>$vo['id']])}">修改</a>
                                    <a href="{:url('Marketing/poster_del',['id'=>$vo['id']])}">删除</a>
                                </td>
                                </td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                    </div>

                </div>
            </div>
        </div>
        {$list->render()}
    </div>

</div>
</div>
{/block}